class PressButtonMenu extends PressButtonControl {
	private var link:String;
	private var menuItems:Collection;
		
	function PressButtonMenu (parent:MovieClip, name:String, view:PressButtonView){
	super(parent, name, view);
	menuItems=new Collection();
	}

	public function getLink():String{
	return this.link;
	}

	public function setLink(link:String):Void{
	this.link=link;
	}

	public function addMenuItem(key:String, value:Object):Void{
	this.menuItems.addItem(key, value);
	}

	public function getMenuItem(key:String):CollectionItem{
	return this.menuItems.getItem(key);
	}

	public function getMenuItems():Collection{
	return this.menuItems;
	}
	
	function draw(){
	super.draw();
	PressButtonMenuView(buttonView).checkItems(getMenuItems().getItems());
	}
	
} // fin de clase